#!/usr/bin/env python
#coding=utf-8

class School():
	name = 'oldboy'
	def __init__(self):
		pass

def test():
	"""
	主要用来区分类变量和实例变量之间的区别
	:return:
	"""
	a = School()
	print School.name, a.name

	#修改类变量，查看类变量，实例变量
	School.name = 'chenronghua'
	print School.name, a.name

	#赋值实例变量，再查看类变量和实例变量
	a.name = 'Dadaozhijian'
	print School.name, a.name

	b = School()
	print School.name, b.name

if __name__ == '__main__':
	test()